package cn.tedu.student;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

/**
 * 配置类
 */
@Configuration
public class StuConfig {

    @Bean
    public Student student(){

        Student s = new Student();
        s.setId(1);
        s.setName("张三");
        s.setGender("女");
        return s;
    }


}
